package com.gaojinqi.sys.core.shiro.config;

import com.gaojinqi.sys.core.shiro.cache.ShiroEhCacheConfiguration;
import com.gaojinqi.sys.core.shiro.cache.ShiroMemoryConfiguration;
import com.gaojinqi.sys.core.shiro.cache.ShiroRedisCacheConfiguration;
import org.apache.shiro.cache.CacheManager;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * shiro CacheManager 配置
 *
 * @author gaojinqi
 * @version 1.0
 * @since 2020年04月27日
 */
@Configuration
@AutoConfigureBefore(value = {ShiroConfiguration.class})
@ConditionalOnClass(value = {CacheManager.class})
@Import(value = {
        ShiroRedisCacheConfiguration.class,
        ShiroEhCacheConfiguration.class,
        ShiroMemoryConfiguration.class
})
public class ShiroCacheManagerAutoConfiguration {

}
